﻿using System;
using System.Collections.Generic;

namespace Xin478.CSWork.Common
{
    [Serializable]
    public class WorkInfo
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public DateTime? AddTime { get; set; }
        public DateTime? AcceptTime { get; set; }
        public DateTime? LatestTime { get; set; }
        public DateTime? FinishTime { get; set; }
        public int UserId { get; set; }
        public int Weight { get; set; }
        public int PublisherId { get; set; }
        public bool IsFinished { get; set; }
        public int CustomerId { get; set; }

        public IList<WorkCommandInfo> WorkCommandInfos { get; set; }
        public EmployeeInfo UserInfo { get; set; }
        public EmployeeInfo PublisherInfo { get; set; }
        public IList<WorkFileInfo> WorkFileInfos { get; set; }
        public CustomerInfo CustomerInfo { get; set; }
    }

    public enum WorkStatusFlag { None, MyProcessing, MyFinished, SomeOneWaitAccept, SomeOneProcessing, SomeOneFinished }
}
